<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/11/10
 * Time: 22:14
 */

namespace Agoni;


interface Api
{
    /**
     * @param string $method
     * @param array $params
     * @return mixed
     * @throws DispatchException
     */
    function request($url,array $paramsstring,$method);

    //签名
    function signature(Array $params);

    //检查是否有异常
    function checkErrorAndThrow($response);

}